#!/usr/bin/env python

import wx.stc as stc

class Extend():
    def __init__(self):
        self.name='xml'
    
    def getStyles(self):
        style={
          0:"fore:#000000", #Value
          1:"fore:#000088", #Tag
          2:"fore:#FF00FF",
          3:"fore:#993399", #Attr
          4:"fore:#00FFFF",
          5:"fore:#000088",
          6:"fore:#009900", #Attr value
          7:"fore:#FF6600",
          8:"fore:#FF0066",
          9:"fore:#666666", #Comment
          10:"fore:#FF6666",
          11:"fore:#FF66FF",
          12:"fore:#0000CC", #<?
          13:"fore:#0000CC", #?>
          14:"fore:#0000FF",
          15:"fore:#0000FF",
          16:"fore:#0000FF",
          17:"fore:#006600", #<![CDATA[...]]>
          #18:"fore:#0000FF",
          }
        return style
    
    def getTemplates(self):
        return []
    
    def isReady(self):
        return True
    
    def start(self):
        pass
    
    def stop(self):
        pass
        
    def getSourceFileNames(self): 
        return ["*.xml","*.rss"]
        
    def getLexer(self):
        return stc.STC_LEX_XML
    
    def read(self,text,path):
        return